/**
 *  用以请求接口数据
 */

import axios from './axios'

let base = "/prod-api";

/**
 * common
 */
// 上传图片
export const getImgURI = params => {
    return axios({
        url: `${base}/upload/uploadImage`,
        method: 'post',
        data: params
    });
};

// 获取gis数据列表
export const queryGisList = (params) => {
  return axios({
    url: '/gis/queryCellList',
    method: 'post',
    data: params
  })
}

export function getUserProfile() {
  return axios({
    url: base + '/system/user/profile',
    method: 'get',
  })
}

export function queryComplaintDelayOperationIsNeedOptimizeOrderId(params) {
    return axios({
        url: base + '/complaint/queryComplaintDelayOperationIsNeedOptimizeOrderId',
        method: 'get',
        params
    })
}